﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityModel
{
    /// <summary>
    /// 课程表
    /// </summary>
    [Table("B02")]
    public class EM_Lesson:EntityBase
    {
        [Column("B100")]
        /// <summary>
        /// 课程号
        /// </summary>
        [Required]
        public int LessonNumber { get; set; }

        [Column("B101")]
        /// <summary>
        /// 课程名
        /// </summary>
        [Required]
        [StringLength(50)]
        public string ?LessonName { get; set; }

        [Column("B102")]
        /// <summary>
        /// 课程时间
        /// </summary>
        [Required]
        public DateTime LessonTime { get; set; }

        [Column("B103")]
        /// <summary>
        /// 课程地点
        /// </summary>
        [Required]
        [StringLength(50)]
        public string ?LessonLocation { get; set; }

        [Column("B104")]
        /// <summary>
        /// 授课老师
        /// </summary>
        [Required]
        [StringLength(50)]
        public string ?LessonTeacher { get; set; }
    }
}
